﻿<%@ Page Theme="BlueSkin" Title="نظام التدريب الالكتروني : الدعم الفني --> تفاصيل الطلب" Language="C#" MasterPageFile="~/LmsWebSite/MasterAR.master" AutoEventWireup="true" CodeFile="EditRequestAR.aspx.cs" Inherits="EditRequestAR" %>

<%@ Register src="randomImageCtl.ascx" tagname="randomImageCtl" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>
        <asp:UpdateProgress ID="uprogress1" runat="server">
            <ProgressTemplate>
            
                <div style="position:fixed;width:30px;height:30px;top:0px;right:0px;border:1px solid orange;">
                    <img src="images/loading.gif" style="width:30px;height:30px;"  alt='Loading' title='Loading'/>
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    
        
<table cellspacing="5" cellpadding="5" width="100%">
        <tr>
            <td align="right" class="heading">
                <div class="floating">
                <a href="SupportMainAR.aspx">الدعم الفني</a> --> تفاصيل الطلب
                </div>


                

                <div class="clearing"></div>

            </td>
        </tr>
        <tr>
            <td>


                 <div class="clearing" style="height:5px;"></div>

                <div class="unfloating aligning direction">
                    <a href='HelpVideo/EditRequestAR.swf' target="_blank" class="linktext">
                    <asp:Label ID="lblVideo" runat="server" Font-Size="16px" >
                    فيديو مساعد (تحديث أو تغيير أو اغلاق طلب دعم)
                    </asp:Label>
                    </a>
                </div>
                <div class="clearing"></div>


            </td>
        </tr>
    </table>
    <br />
    
    <div class="aligning allWidthWithMargins direction" style="margin-bottom:20px;margin-left:30px;margin-right:30px;font-size:14px;">
    
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblTitle" runat="server" Text="موضوع الطلب "></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:627px;">
           
           <asp:Label ID="lblTitleBody" runat="server" Text="" style="width:250px;"></asp:Label>
        </div>  
       <div class="floating aligning direction" >
           
        </div>
        
        <div class="clearing" style="width:1px;height:10px;"></div>

        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblRequestType" runat="server" Text="نوع الطلب "></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:627px;">
           <asp:Label ID="lblRequestTypeBody" runat="server" Text="" style="width:250px;"></asp:Label>
           
           
        </div>  
       <div class="floating aligning direction" >
           
        </div>


        <div class="clearing" style="width:1px;height:10px;"></div>


        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblRequestSender" runat="server" Text="صاحب الطلب "></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:627px;">
           <asp:Label ID="lblRequestSenderBody" runat="server" Text="" style="width:250px;" ></asp:Label>
        </div>  
       <div class="floating aligning direction" >
           
        </div>

        <div class="clearing" style="width:1px;height:10px;"></div>


        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblStatusHead" runat="server" Text="الحالة "></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:627px;">
           <asp:Label ID="lblStatusBody" runat="server" Text="" style="width:250px;" ></asp:Label>
        </div>  
       <div class="floating aligning direction" >
           
        </div>



        <div class="clearing" style="width:1px;height:10px;"></div>


        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblDetails" runat="server" Text="التفاصيل "></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:627px;text-align:justify;">
           <asp:Label ID="lblDetailsBody" runat="server" Text="" style="width:250px;" ></asp:Label>
        </div>  
       <div class="floating aligning direction" >
           
        </div>

        <div class="clearing" style="width:1px;height:10px;"></div>

        <asp:Panel ID="pnlRequestImage" Visible="false" runat="server">
        


        <div class="floating aligning direction" style="width:200px;">
            <asp:Label runat="server" Text="صورة مرفقة "></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:627px;text-align:justify;">
           <a id="aImageLink" runat="server" href='#'><img id="imgImage" runat="server" alt="صورة مرفقة" title="صورة مرفقة" style="border:none;width:100px;height:100px;" src="" /></a>
        </div>  
       <div class="floating aligning direction" >
           
        </div>
        
        <div class="clearing"></div>
        </asp:Panel>



        <div class="clearing" style="width:1px;height:10px;"></div>
        
       
        <asp:Panel ID="pnlMessage" runat="server" CssClass=" direction allWidthWithMargins">
           <hr />
        <div class="clearing"></div>
          
            <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblMessage" runat="server" Text="اضف رسالة "></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:325px;">
           <asp:TextBox ID="txtMessage" runat="server" Text="" TextMode="MultiLine" 
               Height="114px" Width="315px" ></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           <asp:RequiredFieldValidator ID="rfvMessage" runat="server" ErrorMessage="يجب كتابة نص الرسالة" ControlToValidate="txtMessage" ValidationGroup="SendMessage">*</asp:RequiredFieldValidator>
        </div>


        <div class="clearing" style="width:1px;height:10px;"></div>


        <div class="floating aligning direction" style="width:200px;">
            <asp:Label  runat="server" Text="ارفاق صورة "></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:325px;">
           <asp:FileUpload ID="fuImage" runat="server" />
        </div>  
            
       <div class="floating aligning direction" >
           
        </div>


        <div class="clearing" style="width:1px;height:10px;"></div>

        
        
            <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblDetectImage" runat="server" Text="اكتب النص التالي"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           
           <uc1:randomImageCtl ID="randomImage" runat="server" />
           
        </div>  
       <div class="floating aligning direction" >
           
        </div>

        <div class="clearing"></div>

        <div class="aligning direction floating" style="width:525px;">
            <div class="direction aligning" style="float:right;">
                <asp:Button ID="btnSendMessage" runat="server" Text="ارسال" 
                    ValidationGroup="SendMessage" onclick="btnSendMessage_Click" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
                <div class="clearing"></div>
            </div>           
            <div class="clearing"></div>
        </div>
        <div class="clearing"></div>

        <hr />
        <div class="clearing"></div>
        </asp:Panel>

        

        <div class="clearing" style="width:1px;height:10px;"></div>

         <asp:GridView ID="grdUsers" runat="server"  DataKeyNames="ID" 
                AutoGenerateColumns="False" AllowPaging="True" 
                  Font-Size="12px" onpageindexchanging="grdUsers_PageIndexChanging" 
                 EnableModelValidation="True" Width="840px" 
            onrowdatabound="grdUsers_RowDataBound">
                
                
                <Columns>
                    
                    <asp:TemplateField HeaderStyle-CssClass="gridRowStyle" ItemStyle-CssClass="gridRowStyle">
                        <HeaderTemplate>
                            <div class="floating aligning direction" style="width:200px;">
                            <asp:Label ID="lblUser" runat="server" Text="المرسل"></asp:Label>
                            <div class="clearing"></div>
                            

                        </div>        
                        
                        
                       <div class="floating aligning direction" style="width:450px;">
                           <asp:Label ID="lblMessage" runat="server" Text="الرسالة" style="width:250px;" ></asp:Label>
                        </div>  
                       
                        
                        </HeaderTemplate>
                      <ItemTemplate>
                      
                        <div class="floating aligning direction" style="width:200px;">
                            <asp:Label ID="lblUser" runat="server" Text='<%# getMessageSenderName (Eval("ID").ToString()) + " يقول" %>'></asp:Label>
                            <div class="clearing"></div>
                            <asp:Label ID="lblMessageDate" runat="server" Text='<%# Eval("MessageDate","{0:dd/MM/yyyy<br />HH:mm:ss}") %>'></asp:Label>

                        </div>        
                        
                        
                       <div class="floating aligning direction" style="width:450px;">
                           <asp:Label ID="lblMessage" runat="server" Text='<%# Eval("Message")%>'  ></asp:Label>
                        </div> 
                        
                        <div class="aligning floating direction" style="font-size:1px;width:10px;height:1px;"></div>
                         
                       <div id="dvImages" runat="server" class="floating aligning direction" style="width:100px;" >
                            <asp:HyperLink id="aImage" runat="server" NavigateUrl="#">
                                <asp:Image id="imgImage" runat="server" AlternateText="Message Image" ToolTip="Message Image"
                                ImageUrl="" style="border:none;width:100px;height:100px;"/>
                            
                            </asp:HyperLink>
                          
                        </div>
                    </ItemTemplate>
                        <HeaderStyle CssClass="gridRowStyle" />
                        <ItemStyle CssClass="gridRowStyle" />
                    </asp:TemplateField>
                
                </Columns>
                
                
            </asp:GridView>

            <div class="clearing" style="width:1px;height:10px;"></div>

            <asp:Panel ID="pnlOperator" runat="server" CssClass=" direction allWidthWithMargins">
                    <hr />
        <div class="clearing"></div>
                    <div class="floating aligning direction" style="width:200px;">
                        <asp:Label ID="lblPeriority" runat="server" Text="اختيار الاولوية "></asp:Label>
                    </div>        
        
                   <div class="floating aligning direction" style="width:250px;">
                       <asp:DropDownList ID="ddlPeriority" runat="server" Width="250px">
                        </asp:DropDownList>
                    </div>  
                   <div class="floating aligning direction" >
                       
                    </div>
                
                    <div class="clearing" style="width:1px;height:10px;"></div>


                    <div class="floating aligning direction" style="width:200px;">
                        <asp:Label ID="lblNote" runat="server" Text="كتابة ملاحظة "></asp:Label>
                    </div>        
        
                   <div class="floating aligning direction" style="width:325px;">
                       <asp:TextBox ID="txtNote" runat="server" Text="" style="width:315px;height:114px;" TextMode="MultiLine" ></asp:TextBox>
                    </div>  
                   <div class="floating aligning direction" >
                       
                    </div>

                    <div class="clearing" style="width:1px;height:10px;"></div>

                    <div class="floating aligning direction" style="width:525px;">
                        <div class="aligning direction" style="float:right;">
                            <asp:Button ID="btnSave" runat="server" Text="حفظ" onclick="btnSave_Click" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
                            <div class="clearing"></div>
                        </div>
                        
                        <div class="clearing"></div>
                    </div>

                    <div class="clearing"></div>
                    <hr />
        <div class="clearing"></div>
            </asp:Panel>
            
            
            <div class="clearing" style="width:1px;height:10px;"></div>

            <asp:Panel ID="pnlUserNote" runat="server" CssClass=" direction allWidthWithMargins">
                 <div class="floating aligning direction" style="width:200px;">
                        <asp:Label ID="lblNoteTitle" runat="server" Text="ملاحظة "></asp:Label>
                 </div>        
        
                <div class="floating aligning direction" style="width:628px;text-align:justify;">
                    <asp:Label ID="lblNoteBody" runat="server" Text="" ></asp:Label>
                </div>  
                <div class="floating aligning direction" >
                       
                </div>
                <div class="clearing"></div>
            </asp:Panel>

            <div class="clearing" style="width:1px;height:10px;"></div>

            <div class="aligning floating direction" style="width:525px;">
                
                <div class="aligning direction" style="float:right;">
                    <asp:Button ID="btnClose" runat="server" Text="اغلاق الطلب" 
                        onclick="btnClose_Click" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
                    <div class="clearing"></div>
                </div>
                
                <div style="float:right;font-size:1px;width:2px;height:1px;"></div>

                <div class="aligning direction" style="float:right;">
                    <asp:Button ID="btnReOpen" runat="server" Text="اعادة تفعيل الطلب" 
                        onclick="btnReOpen_Click" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
                    <div class="clearing"></div>
                </div>

                <div style="float:right;font-size:1px;width:2px;height:1px;"></div>

                <div class="aligning direction" style="float:right;">
                    <asp:Button ID="btnSuspend" runat="server" Text="تعليق الطلب" 
                        onclick="btnSuspend_Click" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
                    <div class="clearing"></div>
                </div>
                

                <div style="float:right;font-size:1px;height:1px;width:5px;"></div>   
                
                

    
        <div class="aligning direction" style="float:right">
                <asp:Button ID="btnBack" runat="server" Text="رجوع" CausesValidation="false" OnClientClick="history.go(-1);return false;" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
            </div>
        



                <div class="clearing"></div>
            </div>


            <div class="clearing" style="width:1px;height:10px;"></div>

            <div class="aligning allWidthWithMargins  direction">
            <asp:Label ID="lblError" runat="server" Text="" ForeColor="Red" style="margin-left:30px;" EnableViewState ="false"></asp:Label>
            <div class="clearing"></div>
            <asp:Label ID="lblResult" runat="server" Text="" ForeColor="Green" style="margin-left:30px;" EnableViewState="false"></asp:Label>
            
            <div class="clearing"></div>
        </div>
        
        <div class="clearing"></div>
        <div class="aligning allWidthWithMargins  direction">
            <asp:ValidationSummary ID="vsError" runat="server" />
            
            <div class="clearing"></div>
        </div>
        <div class="clearing"></div>



    </div>

   
                


    <div class="clearing" style="height:5px;"></div>

    </ContentTemplate>

    <Triggers>
        <asp:PostBackTrigger ControlID="btnSendMessage" />
    </Triggers>

    </asp:UpdatePanel>

</asp:Content>

